import request from '@/utils/request'

// 查询幻灯片表列表
export function listSlide(query) {
  return request({
    url: '/website/slide/list',
    method: 'get',
    params: query
  })
}

// 查询幻灯片表详细
export function getSlide(slideId) {
  return request({
    url: '/website/slide/' + slideId,
    method: 'get'
  })
}

// 新增幻灯片表
export function addSlide(data) {
  return request({
    url: '/website/slide/create',
    method: 'post',
    data: data
  })
}

// 修改幻灯片表
export function updateSlide(slideId,data) {
  return request({
    url: '/website/slide/update/' + slideId,
    method: 'post',
    data: data
  })
}

// 删除幻灯片表
export function delSlide(slideId) {
  return request({
    url: '/website/slide/' + slideId,
    method: 'delete'
  })
}
